package com.example.list_day3;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class day_1 extends AppCompatActivity {
    Button setBtn_day1;
    Button setBtn_day3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.day_1);
        setBtn_day1 = findViewById(R.id.bt_dl);
        setBtn_day1.setOnClickListener(new View.OnClickListener() {
            public void onClick(View V) {
                Toast.makeText(day_1.this, "我被点击了", Toast.LENGTH_SHORT).show();
                Intent intent = new Intent();
                intent.setClass(day_1.this, MainActivity.class);
                startActivity(intent);
            }
        });
    }
}
